
import React, { useState } from 'react';
import '../../styles/Issue/Activity.scss'
const Activity = () => {
  const [state,setstate] = useState(false)
  const closeActivity = ()=>{
    setstate(true)
  }
  return (
    // eslint-disable-next-line no-useless-concat
    <div className={"activity" + " "+ (state?'A-Uative':"A-active")}>
      <p>最新活动：租房半价起外加送美女了！！！</p>
      <span onClick={closeActivity}>❌</span>
    </div>
  );
}

export default Activity;
